import {ElMessage} from "element-plus";

export const windowSizeChangeFunction = ()=>{
    let flag = true;

    return ()=>{
        if (flag) {
            ElMessage({
                message: '旋转屏幕后刷新页面，将会获得更好的体验',
                type: 'success',
            })
            flag = false;
            setTimeout(()=>flag=true,200)
        }
    }
}